home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / Oberon⁄F™ 1.2 / Preinstalled version / Obx / Docu / Db < prev    next >
MacBinary  |  1996-07-08  |  5.1 KB  |  [oODC/obnF]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
10% dexvert Degas High Resolution Picture (PI) (image/degasHiPI) magic Supported
100% file MacBinary II, inited, Mon Jul 8 09:37:01 1996, modified Mon Jul 8 09:37:01 1996, creator 'obnF', type 'oODC', 4614 bytes "Db" , at 0x1286 318 bytes resource default (weak)
99% file data default
65% TrID DEGAS hi-res bitmap default (weak)
33% TrID MacBinary 2 default (weak)
0% TrID Sybase iAnywhere database files default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[oODC]
macFileCreator[obnF]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 02 44 62 00 00 00 00 | 00 00 00 00 00 00 00 00 |..Db....|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 6f 4f 44 43 6f 62 6e | 46 01 00 00 00 00 00 00 |.oODCobn|F.......|
|00000050| 00 00 00 00 00 12 06 00 | 00 01 3e ae 06 bf 7d ae |........|..>...}.|
|00000060| 06 bf 7d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..}.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 eb b8 00 00 |........|........|
|00000080| 43 44 4f 6f 00 00 00 00 | 82 f1 44 6f 63 75 6d 65 |CDOo....|..Docume|
|00000090| 6e 74 73 2e 53 74 64 44 | 6f 63 75 6d 65 6e 74 44 |nts.StdD|ocumentD|
|000000a0| 65 73 63 00 f1 44 6f 63 | 75 6d 65 6e 74 73 2e 44 |esc..Doc|uments.D|
|000000b0| 6f 63 75 6d 65 6e 74 44 | 65 73 63 00 f1 43 6f 6e |ocumentD|esc..Con|
|000000c0| 74 61 69 6e 65 72 73 2e | 56 69 65 77 44 65 73 63 |tainers.|ViewDesc|
|000000d0| 00 f1 56 69 65 77 73 2e | 56 69 65 77 44 65 73 63 |..Views.|ViewDesc|
|000000e0| 00 f0 53 74 6f 72 65 73 | 2e 53 74 6f 72 65 44 65 |..Stores|.StoreDe|
|000000f0| 73 63 00 00 00 00 00 00 | 00 00 00 07 00 00 00 83 |sc......|........|
|00000100| 11 00 00 00 00 00 83 f1 | 44 6f 63 75 6d 65 6e 74 |........|Document|
|00000110| 73 2e 4d 6f 64 65 6c 44 | 65 73 63 00 f1 43 6f 6e |s.ModelD|esc..Con|
|00000120| 74 61 69 6e 65 72 73 2e | 4d 6f 64 65 6c 44 65 73 |tainers.|ModelDes|
|00000130| 63 00 f1 4d 6f 64 65 6c | 73 2e 4d 6f 64 65 6c 44 |c..Model|s.ModelD|
|00000140| 65 73 63 00 f1 53 74 6f | 72 65 73 2e 45 6c 65 6d |esc..Sto|res.Elem|
|00000150| 44 65 73 63 00 f2 04 00 | 00 00 00 00 00 00 d1 10 |Desc....|........|
|00000160| 00 00 09 00 00 00 c9 10 | 00 00 00 00 00 00 00 82 |........|........|
|00000170| f1 54 65 78 74 56 69 65 | 77 73 2e 53 74 64 56 69 |.TextVie|ws.StdVi|
|00000180| 65 77 44 65 73 63 00 f1 | 54 65 78 74 56 69 65 77 |ewDesc..|TextView|
|00000190| 73 2e 56 69 65 77 44 65 | 73 63 00 f2 02 00 00 00 |s.ViewDe|sc......|
|000001a0| 00 00 00 00 00 00 00 00 | 07 00 00 00 73 10 00 00 |........|....s...|
|000001b0| 00 00 00 83 f1 54 65 78 | 74 4d 6f 64 65 6c 73 2e |.....Tex|tModels.|
|000001c0| 53 74 64 4d 6f 64 65 6c | 44 65 73 63 00 f1 54 65 |StdModel|Desc..Te|
|000001d0| 78 74 4d 6f 64 65 6c 73 | 2e 4d 6f 64 65 6c 44 65 |xtModels|.ModelDe|
|000001e0| 73 63 00 f2 06 00 00 00 | 00 00 00 00 75 0e 00 00 |sc......|....u...|
|000001f0| 0f 00 00 00 6d 0e 00 00 | 00 00 00 00 00 00 f9 01 |....m...|........|
|00000200| 00 00 00 82 f1 54 65 78 | 74 4d 6f 64 65 6c 73 2e |.....Tex|tModels.|
|00000210| 41 74 74 72 69 62 75 74 | 65 73 44 65 73 63 00 f2 |Attribut|esDesc..|
|00000220| 04 00 00 00 00 00 00 00 | 2f 00 00 00 00 00 00 00 |........|/.......|
|00000230| 22 00 00 00 00 00 00 00 | 00 01 00 00 00 00 48 65 |".......|......He|
|00000240| 6c 76 65 74 69 63 61 00 | 7c be 01 00 00 00 00 00 |lvetica.||.......|
|00000250| bc 02 00 00 00 00 18 00 | 00 00 01 82 f2 0d 00 00 |........|........|
|00000260| 00 00 00 00 00 2f 00 00 | 00 00 00 00 00 22 00 00 |...../..|....."..|
|00000270| 00 00 00 00 00 00 01 00 | 00 00 00 48 65 6c 76 65 |........|...Helve|
|00000280| 74 69 63 61 00 7c be 01 | 00 00 00 00 00 90 01 00 |tica.|..|........|
|00000290| 00 00 00 3d 00 00 00 02 | 82 f2 0d 00 00 00 00 00 |...=....|........|
|000002a0| 00 00 a4 00 00 00 00 00 | 00 00 22 00 00 00 00 00 |........|..".....|
|000002b0| 00 00 00 01 00 00 00 00 | 48 65 6c 76 65 74 69 63 |........|Helvetic|
|000002c0| 61 00 7c be 01 00 01 00 | 00 00 90 01 00 00 00 00 |a.|.....|........|
|000002d0| 09 00 00 00 01 10 01 00 | 00 02 08 00 00 00 01 23 |........|.......#|
|000002e0| 01 00 00 02 06 00 00 00 | 01 14 00 00 00 02 11 00 |........|........|
|000002f0| 00 00 01 0a 00 00 00 02 | 03 00 00 00 01 59 02 00 |........|.....Y..|
|00000300| 00 02 1c 00 00 00 01 17 | 00 00 00 02 19 00 00 00 |........|........|
|00000310| 01 3b 00 00 00 00 09 00 | 00 00 01 ba 02 00 00 00 |.;......|........|
|00000320| 08 00 00 00 01 64 01 00 | 00 00 05 00 00 00 01 18 |.....d..|........|
|00000330| 00 00 00 02 49 00 00 00 | 01 1b 00 00 00 01 00 00 |....I...|........|
|00000340| 00 00 ec 84 02 00 b4 21 | 02 00 82 f1 44 65 76 43 |.......!|....DevC|
|00000350| 6f 6d 6d 61 6e 64 65 72 | 73 2e 53 74 64 56 69 65 |ommander|s.StdVie|
|00000360| 77 44 65 73 63 00 f1 44 | 65 76 43 6f 6d 6d 61 6e |wDesc..D|evComman|
|00000370| 64 65 72 73 2e 56 69 65 | 77 44 65 73 63 00 f2 03 |ders.Vie|wDesc...|
|00000380| 00 00 00 00 00 00 00 20 | 00 00 00 00 00 00 00 06 |....... |........|
|00000390| 00 00 00 00 00 00 15 00 | 00 01 12 00 00 00 01 00 |........|........|
|000003a0| 00 00 00 ec 84 02 00 b4 | 21 02 00 82 f2 0e 00 00 |........|!.......|
|000003b0| 00 00 00 00 00 20 00 00 | 00 00 00 00 00 06 00 00 |..... ..|........|
|000003c0| 00 00 00 00 15 00 00 01 | 11 00 00 00 01 00 00 00 |........|........|
|000003d0| 00 ec 84 02 00 b4 21 02 | 00 82 f2 0e 00 00 00 00 |......!.|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 06 00 00 00 00 |........|........|
|000003f0| 00 00 15 00 00 01 e3 01 | 00 00 ff 4f 62 65 72 6f |........|...Obero|
|00000400| 6e 20 62 79 20 45 78 61 | 6d 70 6c 65 3a 20 4f 62 |n by Exa|mple: Ob|
|00000410| 78 44 62 0d 0d 54 68 69 | 73 20 65 78 61 6d 70 6c |xDb..Thi|s exampl|
|00000420| 65 20 70 72 6f 76 69 64 | 65 73 20 74 77 6f 20 63 |e provid|es two c|
|00000430| 6f 6d 6d 61 6e 64 73 20 | 74 6f 20 74 68 65 20 75 |ommands |to the u|
|00000440| 73 65 72 2e 20 54 68 65 | 20 66 69 72 73 74 2c 20 |ser. The| first, |
|00000450| 45 6e 74 65 72 44 61 74 | 61 2c 20 74 61 6b 65 73 |EnterDat|a, takes|
|00000460| 20 61 20 74 65 78 74 20 | 73 65 6c 65 63 74 69 6f | a text |selectio|
|00000470| 6e 20 61 73 20 69 6e 70 | 75 74 2c 20 61 6e 64 20 |n as inp|ut, and |
|00000480| 72 65 61 64 73 20 69 74 | 20 6c 69 6e 65 20 66 6f |reads it| line fo|
|00000490| 72 20 6c 69 6e 65 2e 20 | 45 61 63 68 20 6c 69 6e |r line. |Each lin|
|000004a0| 65 20 73 68 6f 75 6c 64 | 20 63 6f 6e 73 69 73 74 |e should| consist|
|000004b0| 20 6f 66 20 61 6e 20 69 | 6e 74 65 67 65 72 20 6e | of an i|nteger n|
|000004c0| 75 6d 62 65 72 2c 20 66 | 6f 6c 6c 6f 77 65 64 20 |umber, f|ollowed |
|000004d0| 62 79 20 61 20 73 74 72 | 69 6e 67 2c 20 74 72 61 |by a str|ing, tra|
|000004e0| 69 6c 65 64 20 62 79 20 | 61 20 72 65 61 6c 20 6e |iled by |a real n|
|000004f0| 75 6d 62 65 72 2e 20 45 | 61 63 68 20 73 75 63 68 |umber. E|ach such|
|00000500| 20 74 75 70 6c 65 20 69 | 73 20 65 6e 74 65 72 65 | tuple i|s entere|
|00000510| 64 20 69 6e 74 6f 20 61 | 20 67 6c 6f 62 61 6c 6c |d into a| globall|
|00000520| 79 20 61 6e 63 68 6f 72 | 65 64 20 6c 69 6e 65 61 |y anchor|ed linea|
|00000530| 72 20 6c 69 73 74 2c 20 | 73 6f 72 74 65 64 20 62 |r list, |sorted b|
|00000540| 79 20 74 68 65 20 69 6e | 74 65 67 65 72 20 76 61 |y the in|teger va|
|00000550| 6c 75 65 2e 20 54 68 65 | 20 73 65 63 6f 6e 64 20 |lue. The| second |
|00000560| 63 6f 6d 6d 61 6e 64 2c | 20 4c 69 73 74 44 61 74 |command,| ListDat|
|00000570| 61 2c 20 67 65 6e 65 72 | 61 74 65 73 20 61 20 74 |a, gener|ates a t|
|00000580| 65 78 74 20 77 68 69 63 | 68 20 64 69 73 70 6c 61 |ext whic|h displa|
|00000590| 79 73 20 74 68 65 20 64 | 61 74 61 20 63 75 72 72 |ys the d|ata curr|
|000005a0| 65 6e 74 6c 79 20 69 6e | 20 74 68 65 20 6c 69 73 |ently in| the lis|
|000005b0| 74 2e 0d 0d 54 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |t...The |followin|
|000005c0| 67 20 74 65 78 74 20 69 | 73 20 6e 6f 74 20 61 6e |g text i|s not an|
|000005d0| 20 65 6d 62 65 64 64 65 | 64 20 74 65 78 74 20 76 | embedde|d text v|
|000005e0| 69 65 77 2c 20 73 69 6e | 63 65 20 65 6d 62 65 64 |iew, sin|ce embed|
|000005f0| 64 65 64 20 76 69 65 77 | 73 20 77 68 69 63 68 20 |ded view|s which |
|00000600| 61 72 65 20 6c 61 72 67 | 65 72 20 74 68 61 6e 20 |are larg|er than |
|00000610| 6f 6e 65 20 70 61 67 65 | 20 74 65 6e 64 20 74 6f |one page| tend to|
|00000620| 20 62 65 20 63 75 6d 62 | 65 72 73 6f 6d 65 20 74 | be cumb|ersome t|
|00000630| 6f 20 75 73 65 2e 20 54 | 6f 20 63 6f 6d 70 69 6c |o use. T|o compil|
|00000640| 65 20 61 20 74 65 78 74 | 20 6c 69 6b 65 20 74 68 |e a text| like th|
|00000650| 65 20 6f 6e 65 20 62 65 | 6c 6f 77 2c 20 73 65 6c |e one be|low, sel|
|00000660| 65 63 74 20 69 74 73 20 | 62 65 67 69 6e 6e 69 6e |ect its |beginnin|
|00000670| 67 20 28 65 2e 67 2e 20 | 64 6f 75 62 6c 65 2d 63 |g (e.g. |double-c|
|00000680| 6c 69 63 6b 20 6f 6e 20 | 74 68 65 20 6b 65 79 77 |lick on |the keyw|
|00000690| 6f 72 64 20 4d 4f 44 55 | 4c 45 29 2c 20 61 6e 64 |ord MODU|LE), and|
|000006a0| 20 74 68 65 6e 20 65 78 | 65 63 75 74 65 20 43 6f | then ex|ecute Co|
|000006b0| 6d 70 69 6c 65 a0 53 65 | 6c 65 63 74 69 6f 6e 20 |mpile.Se|lection |
|000006c0| 66 72 6f 6d 20 74 68 65 | 20 44 65 76 20 6d 65 6e |from the| Dev men|
|000006d0| 75 2e 0d 0d 4d 4f 44 55 | 4c 45 20 4f 62 78 44 62 |u...MODU|LE ObxDb|
|000006e0| 3b 0d 0d 09 49 4d 50 4f | 52 54 20 56 69 65 77 73 |;...IMPO|RT Views|
|000006f0| 2c 20 54 65 78 74 4d 6f | 64 65 6c 73 2c 20 54 65 |, TextMo|dels, Te|
|00000700| 78 74 4d 61 70 70 65 72 | 73 2c 20 54 65 78 74 56 |xtMapper|s, TextV|
|00000710| 69 65 77 73 2c 20 54 65 | 78 74 43 6f 6e 74 72 6f |iews, Te|xtContro|
|00000720| 6c 6c 65 72 73 3b 0d 0d | 09 43 4f 4e 53 54 0d 09 |llers;..|.CONST..|
|00000730| 09 69 6e 74 20 3d 20 54 | 65 78 74 4d 61 70 70 65 |.int = T|extMappe|
|00000740| 72 73 2e 69 6e 74 3b 20 | 73 74 72 69 6e 67 20 3d |rs.int; |string =|
|00000750| 20 54 65 78 74 4d 61 70 | 70 65 72 73 2e 73 74 72 | TextMap|pers.str|
|00000760| 69 6e 67 3b 0d 09 09 72 | 65 61 6c 20 3d 20 54 65 |ing;...r|eal = Te|
|00000770| 78 74 4d 61 70 70 65 72 | 73 2e 72 65 61 6c 3b 20 |xtMapper|s.real; |
|00000780| 69 6e 76 61 6c 69 64 20 | 3d 20 54 65 78 74 4d 61 |invalid |= TextMa|
|00000790| 70 70 65 72 73 2e 69 6e | 76 61 6c 69 64 3b 0d 0d |ppers.in|valid;..|
|000007a0| 09 54 59 50 45 0d 09 09 | 4e 6f 64 65 20 3d 20 50 |.TYPE...|Node = P|
|000007b0| 4f 49 4e 54 45 52 20 54 | 4f 20 52 45 43 4f 52 44 |OINTER T|O RECORD|
|000007c0| 0d 09 09 09 6e 65 78 74 | 3a 20 4e 6f 64 65 3b 0d |....next|: Node;.|
|000007d0| 09 09 09 69 64 3a 20 4c | 4f 4e 47 49 4e 54 3b 0d |...id: L|ONGINT;.|
|000007e0| 09 09 09 6e 61 6d 65 3a | 20 54 65 78 74 4d 61 70 |...name:| TextMap|
|000007f0| 70 65 72 73 2e 53 74 72 | 69 6e 67 3b 0d 09 09 09 |pers.Str|ing;....|
|00000800| 76 61 6c 75 65 3a 20 52 | 45 41 4c 0d 09 09 45 4e |value: R|EAL...EN|
|00000810| 44 3b 0d 0d 09 56 41 52 | 20 6c 69 73 74 3a 20 4e |D;...VAR| list: N|
|00000820| 6f 64 65 3b 0d 0d 09 50 | 52 4f 43 45 44 55 52 45 |ode;...P|ROCEDURE|
|00000830| 20 45 6e 74 65 72 20 28 | 69 64 3a 20 4c 4f 4e 47 | Enter (|id: LONG|
|00000840| 49 4e 54 3b 20 6e 61 6d | 65 3a 20 54 65 78 74 4d |INT; nam|e: TextM|
|00000850| 61 70 70 65 72 73 2e 53 | 74 72 69 6e 67 3b 20 76 |appers.S|tring; v|
|00000860| 61 6c 75 65 3a 20 52 45 | 41 4c 29 3b 0d 09 09 56 |alue: RE|AL);...V|
|00000870| 41 52 20 6e 2c 20 68 2c | 20 70 3a 20 4e 6f 64 65 |AR n, h,| p: Node|
|00000880| 3b 0d 09 42 45 47 49 4e | 0d 09 09 4e 45 57 28 6e |;..BEGIN|...NEW(n|
|00000890| 29 3b 20 6e 2e 69 64 20 | 3a 3d 20 69 64 3b 20 6e |); n.id |:= id; n|
|000008a0| 2e 6e 61 6d 65 20 3a 3d | 20 6e 61 6d 65 3b 20 6e |.name :=| name; n|
|000008b0| 2e 76 61 6c 75 65 20 3a | 3d 20 76 61 6c 75 65 3b |.value :|= value;|
|000008c0| 0d 09 09 68 20 3a 3d 20 | 6c 69 73 74 3b 20 70 20 |...h := |list; p |
|000008d0| 3a 3d 20 4e 49 4c 3b 20 | 57 48 49 4c 45 20 28 68 |:= NIL; |WHILE (h|
|000008e0| 20 23 20 4e 49 4c 29 20 | 26 20 28 68 2e 69 64 20 | # NIL) |& (h.id |
|000008f0| 3c 3d 20 69 64 29 20 44 | 4f 20 70 20 3a 3d 20 68 |<= id) D|O p := h|
|00000900| 3b 20 68 20 3a 3d 20 68 | 2e 6e 65 78 74 20 45 4e |; h := h|.next EN|
|00000910| 44 3b 0d 09 09 49 46 20 | 70 20 23 20 4e 49 4c 20 |D;...IF |p # NIL |
|00000920| 54 48 45 4e 09 28 2a 20 | 69 6e 73 65 72 74 20 62 |THEN.(* |insert b|
|00000930| 65 74 77 65 65 6e 20 70 | 20 61 6e 64 20 68 20 2a |etween p| and h *|
|00000940| 29 0d 09 09 09 70 2e 6e | 65 78 74 20 3a 3d 20 6e |)....p.n|ext := n|
|00000950| 0d 09 09 45 4c 53 45 09 | 28 2a 20 69 6e 73 65 72 |...ELSE.|(* inser|
|00000960| 74 20 61 74 20 62 65 67 | 69 6e 6e 69 6e 67 20 2a |t at beg|inning *|
|00000970| 29 0d 09 09 09 6c 69 73 | 74 20 3a 3d 20 6e 0d 09 |)....lis|t := n..|
|00000980| 09 45 4e 44 3b 0d 09 09 | 6e 2e 6e 65 78 74 20 3a |.END;...|n.next :|
|00000990| 3d 20 68 0d 09 45 4e 44 | 20 45 6e 74 65 72 3b 0d |= h..END| Enter;.|
|000009a0| 0d 09 50 52 4f 43 45 44 | 55 52 45 20 45 6e 74 65 |..PROCED|URE Ente|
|000009b0| 72 44 61 74 61 2a 3b 0d | 09 09 56 41 52 20 63 3a |rData*;.|..VAR c:|
|000009c0| 20 54 65 78 74 43 6f 6e | 74 72 6f 6c 6c 65 72 73 | TextCon|trollers|
|000009d0| 2e 43 6f 6e 74 72 6f 6c | 6c 65 72 3b 20 62 65 67 |.Control|ler; beg|
|000009e0| 2c 20 65 6e 64 3a 20 4c | 4f 4e 47 49 4e 54 3b 0d |, end: L|ONGINT;.|
|000009f0| 09 09 09 73 3a 20 54 65 | 78 74 4d 61 70 70 65 72 |...s: Te|xtMapper|
|00000a00| 73 2e 53 63 61 6e 6e 65 | 72 3b 20 69 64 3a 20 4c |s.Scanne|r; id: L|
|00000a10| 4f 4e 47 49 4e 54 3b 0d | 09 09 09 6e 61 6d 65 3a |ONGINT;.|...name:|
|00000a20| 20 54 65 78 74 4d 61 70 | 70 65 72 73 2e 53 74 72 | TextMap|pers.Str|
|00000a30| 69 6e 67 3b 20 76 61 6c | 75 65 3a 20 52 45 41 4c |ing; val|ue: REAL|
|00000a40| 3b 0d 09 42 45 47 49 4e | 0d 09 09 63 20 3a 3d 20 |;..BEGIN|...c := |
|00000a50| 54 65 78 74 43 6f 6e 74 | 72 6f 6c 6c 65 72 73 2e |TextCont|rollers.|
|00000a60| 46 6f 63 75 73 28 29 3b | 0d 09 09 49 46 20 28 63 |Focus();|...IF (c|
|00000a70| 20 23 20 4e 49 4c 29 20 | 26 20 63 2e 48 61 73 53 | # NIL) |& c.HasS|
|00000a80| 65 6c 65 63 74 69 6f 6e | 28 29 20 54 48 45 4e 0d |election|() THEN.|
|00000a90| 09 09 09 63 2e 47 65 74 | 53 65 6c 65 63 74 69 6f |...c.Get|Selectio|
|00000aa0| 6e 28 62 65 67 2c 20 65 | 6e 64 29 3b 0d 09 09 09 |n(beg, e|nd);....|
|00000ab0| 73 2e 43 6f 6e 6e 65 63 | 74 54 6f 28 63 2e 74 65 |s.Connec|tTo(c.te|
|00000ac0| 78 74 29 3b 20 73 2e 53 | 65 74 50 6f 73 28 62 65 |xt); s.S|etPos(be|
|00000ad0| 67 29 3b 0d 09 09 09 73 | 2e 53 63 61 6e 3b 0d 09 |g);....s|.Scan;..|
|00000ae0| 09 09 57 48 49 4c 45 20 | 28 73 2e 74 79 70 65 20 |..WHILE |(s.type |
|00000af0| 3d 20 54 65 78 74 4d 61 | 70 70 65 72 73 2e 69 6e |= TextMa|ppers.in|
|00000b00| 74 29 20 26 20 28 73 2e | 50 6f 73 28 29 20 3c 3d |t) & (s.|Pos() <=|
|00000b10| 20 65 6e 64 29 20 44 4f | 0d 09 09 09 09 49 46 20 | end) DO|.....IF |
|00000b20| 73 2e 74 79 70 65 20 3d | 20 69 6e 74 20 54 48 45 |s.type =| int THE|
|00000b30| 4e 20 69 64 20 3a 3d 20 | 73 2e 69 6e 74 3b 20 73 |N id := |s.int; s|
|00000b40| 2e 53 63 61 6e 20 45 4c | 53 45 20 73 2e 74 79 70 |.Scan EL|SE s.typ|
|00000b50| 65 20 3a 3d 20 54 65 78 | 74 4d 61 70 70 65 72 73 |e := Tex|tMappers|
|00000b60| 2e 69 6e 76 61 6c 69 64 | 20 45 4e 44 3b 0d 09 09 |.invalid| END;...|
|00000b70| 09 09 49 46 20 73 2e 74 | 79 70 65 20 3d 20 73 74 |..IF s.t|ype = st|
|00000b80| 72 69 6e 67 20 54 48 45 | 4e 20 6e 61 6d 65 20 3a |ring THE|N name :|
|00000b90| 3d 20 73 2e 73 74 72 69 | 6e 67 3b 20 73 2e 53 63 |= s.stri|ng; s.Sc|
|00000ba0| 61 6e 20 45 4c 53 45 20 | 73 2e 74 79 70 65 20 3a |an ELSE |s.type :|
|00000bb0| 3d 20 69 6e 76 61 6c 69 | 64 20 45 4e 44 3b 0d 09 |= invali|d END;..|
|00000bc0| 09 09 09 49 46 20 73 2e | 74 79 70 65 20 3d 20 72 |...IF s.|type = r|
|00000bd0| 65 61 6c 20 54 48 45 4e | 20 76 61 6c 75 65 20 3a |eal THEN| value :|
|00000be0| 3d 20 53 48 4f 52 54 28 | 73 2e 72 65 61 6c 29 3b |= SHORT(|s.real);|
|00000bf0| 20 73 2e 53 63 61 6e 20 | 45 4c 53 45 20 73 2e 74 | s.Scan |ELSE s.t|
|00000c00| 79 70 65 20 3a 3d 20 69 | 6e 76 61 6c 69 64 20 45 |ype := i|nvalid E|
|00000c10| 4e 44 3b 0d 09 09 09 09 | 45 6e 74 65 72 28 69 64 |ND;.....|Enter(id|
|00000c20| 2c 20 6e 61 6d 65 2c 20 | 76 61 6c 75 65 29 0d 09 |, name, |value)..|
|00000c30| 09 09 45 4e 44 3b 0d 09 | 09 09 63 2e 53 65 6c 65 |..END;..|..c.Sele|
|00000c40| 63 74 41 6c 6c 28 46 41 | 4c 53 45 29 0d 09 09 45 |ctAll(FA|LSE)...E|
|00000c50| 4e 44 0d 09 45 4e 44 20 | 45 6e 74 65 72 44 61 74 |ND..END |EnterDat|
|00000c60| 61 3b 0d 0d 09 50 52 4f | 43 45 44 55 52 45 20 4c |a;...PRO|CEDURE L|
|00000c70| 69 73 74 44 61 74 61 2a | 3b 0d 09 09 56 41 52 20 |istData*|;...VAR |
|00000c80| 74 3a 20 54 65 78 74 4d | 6f 64 65 6c 73 2e 4d 6f |t: TextM|odels.Mo|
|00000c90| 64 65 6c 3b 20 6e 3a 20 | 4e 6f 64 65 3b 20 66 3a |del; n: |Node; f:|
|00000ca0| 20 54 65 78 74 4d 61 70 | 70 65 72 73 2e 46 6f 72 | TextMap|pers.For|
|00000cb0| 6d 61 74 74 65 72 3b 0d | 09 42 45 47 49 4e 0d 09 |matter;.|.BEGIN..|
|00000cc0| 09 74 20 3a 3d 20 54 65 | 78 74 4d 6f 64 65 6c 73 |.t := Te|xtModels|
|00000cd0| 2e 64 69 72 2e 4e 65 77 | 28 29 3b 0d 09 09 66 2e |.dir.New|();...f.|
|00000ce0| 43 6f 6e 6e 65 63 74 54 | 6f 28 74 29 3b 20 66 2e |ConnectT|o(t); f.|
|00000cf0| 53 65 74 50 6f 73 28 30 | 29 3b 0d 09 09 6e 20 3a |SetPos(0|);...n :|
|00000d00| 3d 20 6c 69 73 74 3b 0d | 09 09 57 48 49 4c 45 20 |= list;.|..WHILE |
|00000d10| 6e 20 23 20 4e 49 4c 20 | 44 4f 0d 09 09 09 66 2e |n # NIL |DO....f.|
|00000d20| 57 72 69 74 65 49 6e 74 | 28 6e 2e 69 64 29 3b 20 |WriteInt|(n.id); |
|00000d30| 66 2e 57 72 69 74 65 54 | 61 62 3b 20 66 2e 57 72 |f.WriteT|ab; f.Wr|
|00000d40| 69 74 65 53 74 72 69 6e | 67 28 6e 2e 6e 61 6d 65 |iteStrin|g(n.name|
|00000d50| 29 3b 20 66 2e 57 72 69 | 74 65 54 61 62 3b 20 66 |); f.Wri|teTab; f|
|00000d60| 2e 57 72 69 74 65 52 65 | 61 6c 28 6e 2e 76 61 6c |.WriteRe|al(n.val|
|00000d70| 75 65 29 3b 0d 09 09 09 | 66 2e 57 72 69 74 65 4c |ue);....|f.WriteL|
|00000d80| 6e 3b 0d 09 09 09 6e 20 | 3a 3d 20 6e 2e 6e 65 78 |n;....n |:= n.nex|
|00000d90| 74 0d 09 09 45 4e 44 3b | 0d 09 09 56 69 65 77 73 |t...END;|...Views|
|00000da0| 2e 4f 70 65 6e 56 69 65 | 77 28 54 65 78 74 56 69 |.OpenVie|w(TextVi|
|00000db0| 65 77 73 2e 64 69 72 2e | 4e 65 77 28 74 29 29 0d |ews.dir.|New(t)).|
|00000dc0| 09 45 4e 44 20 4c 69 73 | 74 44 61 74 61 3b 0d 0d |.END Lis|tData;..|
|00000dd0| 09 50 52 4f 43 45 44 55 | 52 45 20 52 65 73 65 74 |.PROCEDU|RE Reset|
|00000de0| 2a 3b 0d 09 42 45 47 49 | 4e 0d 09 09 6c 69 73 74 |*;..BEGI|N...list|
|00000df0| 20 3a 3d 20 4e 49 4c 09 | 28 2a 20 72 65 6c 65 61 | := NIL.|(* relea|
|00000e00| 73 65 20 64 61 74 61 20 | 73 74 72 75 63 74 75 72 |se data |structur|
|00000e10| 65 20 73 6f 20 74 68 61 | 74 20 67 61 72 62 61 67 |e so tha|t garbag|
|00000e20| 65 20 63 6f 6c 6c 65 63 | 74 6f 72 20 63 61 6e 20 |e collec|tor can |
|00000e30| 72 65 63 6c 61 69 6d 20 | 6d 65 6d 6f 72 79 20 2a |reclaim |memory *|
|00000e40| 29 0d 09 45 4e 44 20 52 | 65 73 65 74 3b 0d 0d 45 |)..END R|eset;..E|
|00000e50| 4e 44 20 4f 62 78 44 62 | 2e 0d 0d 0d 02 20 4f 62 |ND ObxDb|..... Ob|
|00000e60| 78 44 62 2e 45 6e 74 65 | 72 44 61 74 61 09 09 02 |xDb.Ente|rData...|
|00000e70| 20 4f 62 78 44 62 2e 4c | 69 73 74 44 61 74 61 09 | ObxDb.L|istData.|
|00000e80| 09 02 20 4f 62 78 44 62 | 2e 52 65 73 65 74 0d 0d |.. ObxDb|.Reset..|
|00000e90| 54 6f 20 74 72 79 20 6f | 75 74 20 74 68 65 20 65 |To try o|ut the e|
|00000ea0| 78 61 6d 70 6c 65 2c 20 | 73 65 6c 65 63 74 20 74 |xample, |select t|
|00000eb0| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 20 6c 69 6e |he follo|wing lin|
|00000ec0| 65 73 2c 20 61 6e 64 20 | 74 68 65 6e 20 63 6c 69 |es, and |then cli|
|00000ed0| 63 6b 20 74 68 65 20 6c | 65 66 74 20 63 6f 6d 6d |ck the l|eft comm|
|00000ee0| 61 6e 64 65 72 20 61 62 | 6f 76 65 3a 0d 0d 31 09 |ander ab|ove:..1.|
|00000ef0| 43 72 61 79 09 31 34 2e | 38 0d 33 09 4e 45 43 09 |Cray.14.|8.3.NEC.|
|00000f00| 31 36 2e 36 0d 32 09 49 | 42 4d 09 38 2e 33 0d 0d |16.6.2.I|BM.8.3..|
|00000f10| 4e 6f 77 20 63 6c 69 63 | 6b 20 74 68 65 20 6d 69 |Now clic|k the mi|
|00000f20| 64 64 6c 65 20 63 6f 6d | 6d 61 6e 64 65 72 2c 20 |ddle com|mander, |
|00000f30| 61 73 20 61 20 72 65 73 | 75 6c 74 20 61 20 77 69 |as a res|ult a wi|
|00000f40| 6e 64 6f 77 20 6f 70 65 | 6e 73 20 77 69 74 68 20 |ndow ope|ns with |
|00000f50| 74 68 65 20 73 6f 72 74 | 65 64 20 69 6e 70 75 74 |the sort|ed input|
|00000f60| 2e 20 49 66 20 79 6f 75 | 20 72 65 70 65 61 74 20 |. If you| repeat |
|00000f70| 62 6f 74 68 20 73 74 65 | 70 73 2c 20 79 6f 75 27 |both ste|ps, you'|
|00000f80| 6c 6c 20 6e 6f 74 65 20 | 74 68 61 74 20 74 68 65 |ll note |that the|
|00000f90| 20 69 6e 70 75 74 20 68 | 61 73 20 62 65 65 6e 20 | input h|as been |
|00000fa0| 61 64 64 65 64 20 74 6f | 20 74 68 65 20 6c 69 73 |added to| the lis|
|00000fb0| 74 20 61 20 73 65 63 6f | 6e 64 20 74 69 6d 65 2c |t a seco|nd time,|
|00000fc0| 20 61 6e 64 20 74 68 61 | 74 20 63 6f 6e 73 65 71 | and tha|t conseq|
|00000fd0| 75 65 6e 74 6c 79 20 65 | 76 65 72 79 20 69 74 65 |uently e|very ite|
|00000fe0| 6d 20 61 70 70 65 61 72 | 73 20 74 77 69 63 65 20 |m appear|s twice |
|00000ff0| 69 6e 20 74 68 65 20 6f | 75 74 70 75 74 2e 0d 0d |in the o|utput...|
|00001000| 54 68 69 73 20 65 78 61 | 6d 70 6c 65 20 68 61 73 |This exa|mple has|
|00001010| 20 73 68 6f 77 6e 20 68 | 6f 77 20 61 20 74 65 78 | shown h|ow a tex|
|00001020| 74 20 63 61 6e 20 62 65 | 20 73 63 61 6e 6e 65 64 |t can be| scanned|
|00001030| 20 73 79 6d 62 6f 6c 20 | 62 79 20 73 79 6d 62 6f | symbol |by symbo|
|00001040| 6c 2c 20 69 6e 73 74 65 | 61 64 20 6f 66 20 63 68 |l, inste|ad of ch|
|00001050| 61 72 61 63 74 65 72 20 | 62 79 20 63 68 61 72 61 |aracter |by chara|
|00001060| 63 74 65 72 2e 82 f1 54 | 65 78 74 43 6f 6e 74 72 |cter...T|extContr|
|00001070| 6f 6c 6c 65 72 73 2e 53 | 74 64 43 74 72 6c 44 65 |ollers.S|tdCtrlDe|
|00001080| 73 63 00 f1 54 65 78 74 | 43 6f 6e 74 72 6f 6c 6c |sc..Text|Controll|
|00001090| 65 72 73 2e 43 6f 6e 74 | 72 6f 6c 6c 65 72 44 65 |ers.Cont|rollerDe|
|000010a0| 73 63 00 f1 43 6f 6e 74 | 61 69 6e 65 72 73 2e 43 |sc..Cont|ainers.C|
|000010b0| 6f 6e 74 72 6f 6c 6c 65 | 72 44 65 73 63 00 f1 43 |ontrolle|rDesc..C|
|000010c0| 6f 6e 74 72 6f 6c 6c 65 | 72 73 2e 43 6f 6e 74 72 |ontrolle|rs.Contr|
|000010d0| 6f 6c 6c 65 72 44 65 73 | 63 00 f2 04 00 00 00 00 |ollerDes|c.......|
|000010e0| 00 00 00 14 00 00 00 00 | 00 00 00 09 00 00 00 00 |........|........|
|000010f0| 00 00 00 00 00 00 00 00 | 00 00 01 82 f1 54 65 78 |........|.....Tex|
|00001100| 74 52 75 6c 65 72 73 2e | 53 74 64 52 75 6c 65 72 |tRulers.|StdRuler|
|00001110| 44 65 73 63 00 f1 54 65 | 78 74 52 75 6c 65 72 73 |Desc..Te|xtRulers|
|00001120| 2e 52 75 6c 65 72 44 65 | 73 63 00 f2 03 00 00 00 |.RulerDe|sc......|
|00001130| 00 00 00 00 ab 00 00 00 | 07 00 00 00 a3 00 00 00 |........|........|
|00001140| 00 00 00 83 f1 54 65 78 | 74 52 75 6c 65 72 73 2e |.....Tex|tRulers.|
|00001150| 53 74 64 53 74 79 6c 65 | 44 65 73 63 00 f1 54 65 |StdStyle|Desc..Te|
|00001160| 78 74 52 75 6c 65 72 73 | 2e 53 74 79 6c 65 44 65 |xtRulers|.StyleDe|
|00001170| 73 63 00 f2 07 00 00 00 | 00 00 00 00 00 00 00 00 |sc......|........|
|00001180| 08 00 00 00 5a 00 00 00 | 00 00 00 00 82 f1 54 65 |....Z...|......Te|
|00001190| 78 74 52 75 6c 65 72 73 | 2e 41 74 74 72 69 62 75 |xtRulers|.Attribu|
|000011a0| 74 65 73 44 65 73 63 00 | f2 04 00 00 00 00 00 00 |tesDesc.|........|
|000011b0| 00 00 00 00 00 00 00 00 | 00 24 00 00 00 00 01 00 |........|.$......|
|000011c0| 00 00 00 00 00 00 00 20 | a3 5a 00 00 00 00 00 18 |....... |.Z......|
|000011d0| f0 01 00 38 63 00 00 01 | 00 00 00 01 00 00 00 00 |...8c...|........|
|000011e0| 00 00 00 82 f2 0d 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 00 00 00 22 00 00 | 00 00 00 00 00 00 01 00 |....."..|........|
|00001200| 00 00 00 48 65 6c 76 65 | 74 69 63 61 00 7c be 01 |...Helve|tica.|..|
|00001210| 00 00 00 00 00 90 01 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001220| 00 00 00 e0 8c 01 00 e0 | 8c 01 00 34 c8 5d 00 e0 |........|...4.]..|
|00001230| b9 3b 3e 82 f1 44 6f 63 | 75 6d 65 6e 74 73 2e 43 |.;>..Doc|uments.C|
|00001240| 6f 6e 74 72 6f 6c 6c 65 | 72 44 65 73 63 00 f2 12 |ontrolle|rDesc...|
|00001250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 08 |........|........|
|00001260| 00 00 00 00 00 00 00 00 | 09 00 00 00 00 94 4d 73 |........|......Ms|
|00001270| 00 18 2b a3 00 80 fc 0a | 00 00 2f 0d 00 d4 37 67 |..+.....|../...7g|
|00001280| 00 18 fc 95 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001300| 00 00 01 00 00 00 01 0c | 00 00 00 0c 00 00 00 32 |........|.......2|
|00001310| 00 02 02 02 02 02 02 02 | 02 02 02 02 02 02 02 02 |........|........|
|00001320| 00 00 00 00 00 1a 00 26 | 00 32 00 3e 00 4a 00 56 |.......&|.2.>.J.V|
|00001330| 02 44 62 00 02 00 00 00 | 50 61 72 74 53 49 54 21 |.Db.....|PartSIT!|
|00001340| 00 00 00 00 00 00 00 00 | 00 00 48 6d 00 00 00 00 |........|..Hm....|
|00001350| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00001360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001370| 00 00 ae 04 81 a7 00 00 | 00 00 00 00 01 3e 00 00 |........|.....>..|
|00001380| 00 00 00 00 00 94 00 86 | 00 00 00 00 00 00 00 00 |........|........|
|00001390| 00 10 00 00 00 00 00 00 | 00 00 90 80 8c 92 84 86 |........|........|
|000013a0| 88 8a 8c 8e 8e 8a 90 00 | 8c 94 84 86 88 8a 8c 8e |........|........|
|000013b0| 8e 8a 00 00 00 00 00 18 | 00 24 00 30 00 3c 00 48 |........|.$.0.<.H|
|000013c0| 00 54 00 60 00 6c 00 78 | 00 84 00 90 88 82 84 86 |.T.`.l.x|........|
|000013d0| 88 88 8a 88 88 8a 8c 94 | 80 90 84 86 8e 8e 80 80 |........|........|
|000013e0| 80 8e 80 80 80 90 84 86 | 80 92 80 88 92 92 80 80 |........|........|
|000013f0| 80 90 80 80 80 80 80 80 | 80 80 80 80 80 90 80 86 |........|........|
|00001400| 00 00 00 08 00 32 00 05 | 01 db 02 00 00 00 01 00 |.....2..|........|
|00001410| 00 00 01 0c 00 00 00 0c | 00 00 00 32 00 55 f9 08 |........|...2.U..|
|00001420| 0e 54 00 00 00 1c 00 32 | 00 00 57 4e 53 50 00 00 |.T.....2|..WNSP..|
|00001430| 00 0a 00 01 ff ff 00 00 | 00 00 00 55 fd d8 00 00 |........|...U....|
|00001440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+